	
const toast ={
	successTab(title,url){
		uni.showToast({
			title: title,
			icon: 'success',
			duration: 2000,
				success:()=>{
					setTimeout(()=>{
						uni.switchTab({
							url: url
						});
					},500)
				}
		});
	},
	successTo(title,url){
		uni.showToast({
			title: title,
			icon: 'success',
			duration: 2000,
				success:()=>{
					setTimeout(()=>{
						uni.navigateTo({
							url: url
						});
					},500)
				}
		});
	},
	success(title,url){
		uni.showToast({
			title: title,
			icon: 'success',
			duration: 2000,
		});
	},
	error(title,duration){
		uni.showToast({
			title: title,
			icon: 'error',
			duration: duration?duration:2000
		});
	}
}
export default toast